

/**
 * 走菜单，走权限控制
 * @type {[null,null]}
 */
export const asyncRouterMap = [

    {
        path: '/',
        name: 'index',
        component: () => import(/* webpackChunkName: "test" */ '@comp/layout/TabLayouts'),
        meta: {title: '首页'},
        redirect: '/workplace',
        children: [
            {
                path: '/workplace',
                name: 'workplace',
                component: () => import(/* webpackChunkName: "test" */ '@views/dashboard/Workplace'),
            },
            {
                path: '/user',
                name: 'user',
                component: () => import(/* webpackChunkName: "test" */ '@views/user/UserList'),
            },
            {
                path: '/role',
                name: 'role',
                component: () => import(/* webpackChunkName: "test" */ '@views/user/RoleList'),
            },
            {
                path: '/test',
                name: 'test',
                component: () => import(/* webpackChunkName: "test" */ '@views/test'),
            }
        ]
    },
    {
        path: '*', redirect: '/404', hidden: true
    }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
    // {
    //     path: '/user',
    //     component: UserLayout,
    //     redirect: '/user/login',
    //     hidden: true,
    //     children: [
    //         {
    //             path: 'login',
    //             name: 'login',
    //             component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
    //         },
    //         {
    //             path: 'register',
    //             name: 'register',
    //             component: () => import(/* webpackChunkName: "user" */ '@/views/user/register/Register')
    //         },
    //         {
    //             path: 'register-result',
    //             name: 'registerResult',
    //             component: () => import(/* webpackChunkName: "user" */ '@/views/user/register/RegisterResult')
    //         },
    //         {
    //             path: 'alteration',
    //             name: 'alteration',
    //             component: () => import(/* webpackChunkName: "user" */ '@/views/user/alteration/Alteration')
    //         },
    //     ]
    // },

    // {
    //   path: '/',
    //   name: 'index',
    //   component: () => import(/* webpackChunkName: "test" */ '@comp/layout/Layout'),
    //   meta: {title: '首页'},
    //   redirect: '/workplace',
    //   children: [
    //       {
    //           path: '/workplace',
    //           name: 'workplace',
    //           component: () => import(/* webpackChunkName: "test" */ '@views/dashboard/Workplace'),
    //       },
    //       {
    //           path: '/user',
    //           name: 'user',
    //           component: () => import(/* webpackChunkName: "test" */ '@views/user/UserList'),
    //       },
    //       {
    //           path: '/role',
    //           name: 'role',
    //           component: () => import(/* webpackChunkName: "test" */ '@views/user/RoleList'),
    //       },
    //       {
    //           path: '/test',
    //           name: 'test',
    //           component: () => import(/* webpackChunkName: "test" */ '@views/test'),
    //       }
    //   ]
    // },

]
